package com.example.waimai.util;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.util.List;

public  class JsonUtil<T> {

    public List parseJosn(String response){
        Gson gson = new Gson();
        List<T> resultList = gson.fromJson(response,new TypeToken<List<T>>(){}.getType());
        return resultList;
    }
}
